#include "svmTrainer.h"

svmTrainer::svmTrainer(Mat _trainingDataMat, Mat _labelsMat){
	this->trainingDataMat = _trainingDataMat;
	this->labelsMat = _labelsMat;
	this->params.svm_type    = CvSVM::C_SVC;
    this->params.kernel_type = CvSVM::LINEAR;
    this->params.term_crit   = cvTermCriteria(CV_TERMCRIT_ITER, 100, 1e-6);
}

void svmTrainer::training(){
	 SVM.train(trainingDataMat, labelsMat, Mat(), Mat(), params);
}